package com.lianyun.day01;

public class IfDemo {

    public static void main(String[] args) {

     /*   int x = 1;
        if (x > 1)
        {
            System.out.println("yes");
        }

      */

        /*int x = 3;

        if (x>1){
            System.out.println("yes");
        }
        else{
            System.out.println("no");

        }

         */

       /* int a=3, b;

        if (a>1){
            b=100;
        }
        else{
            b=200;
        } */


        //int a=3, b;
        //b= (a>1)? 100: 200;

       /* int a =3;

        if (a<1){
            System.out.println("a");
        }
        else if (a>1){
            System.out.println("b");
        }
        else if (a>2){
            System.out.println("c");
        }
        else{
            System.out.println("d");
        }

        */

       /*int a = 3;

        if (a>1){
            System.out.println("a");
        }
        if (a>2){
            System.out.println("b");
        }
        if (a>3){
            System.out.println("c");
        }
        else{
            System.out.println("d");
        }
        */


        /*int m = 98;{
            System.out.println(m);
        }

         */

        /*int week = 1;
        if (week==1){
            System.out.println(week +"对应中文是星期一");
        }
        else if (week==2){
            System.out.println(week +"对应中文是星期二");
        }
        else if (week==3){
            System.out.println(week +"对应中文是星期三");
        }
        else if (week==4){
            System.out.println(week +"对应中文是星期四");
        }
        else if (week==5){
            System.out.println(week +"对应中文是星期五");
        }
        else
            System.out.println(week+"没有对应的星期");

         */

       // int month =18;

       /* if (month==3 || month==4 || month==5){
            System.out.println(month+"对应的季节是春季");
        }
        else if (month==6 || month==7 || month==8){
            System.out.println(month+"对应的季节是春季");
        }
        else if (month==9 || month==10 || month==11){
            System.out.println(month+"对应的季节是春季");
        }
        else if (month==12 || month==1 || month==2){
            System.out.println(month+"对应的季节是春季");
        }
        else
            System.out.println(month+"没有对应的季节");

        */

        int month=15;

        if (month<1 || month>12){
            System.out.println(month+"没有对应的季节");
        }
        else if (month>=3 && month<=5){
            System.out.println(month+"对应的季节是春季");
        }
        else if (month>=6 && month<=8){
            System.out.println(month+"对应的季节是夏季");
        }
        else if (month>=9 && month<=11){
            System.out.println(month+"对应的季节是秋季");
        }
        else if (month>=12 && month<=2){
            System.out.println(month+"对应的季节是冬季");
        }

        System.out.println("over");



    }




}
